/*
 * @Descripttion: 
 * @version: 
 * @Author: jinzhuo
 * @LastEditors: Andy
 * @LastEditTime: 2022-12-17 22:13:17
 */
function fc1(){
    console.log("这是普通函数写法")
}
const fc2 = ()=>{
    console.log("这是箭头函数写法")
}
fc2()
fc1()
//----------------------------------
type user = string
interface gril {
    name:string,
    age:number
}
const fc3 = (param:gril) =>{
    console.log("姓名是"+param.name+"年龄:"+param.age)
}
const param = {
    name:"金卓",
    age:23
}
fc3(param)

function typeParamFc(param:user){
    console.log(param)
}
typeParamFc("jin")
export{}